package com.example.springbootstudy.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;

import javax.annotation.PostConstruct;

@Controller
public class UserController {

    private Logger log = LoggerFactory.getLogger(UserController.class);

    @PostConstruct
    public void init(){
        System.out.println("UserController init");
        log.debug("================================debug");
        log.info("================================info");
        log.warn("================================warn");
        log.error("================================error");
    }
}
